/*
This file is part of Jumpers.

Jumpers is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Jumpers is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Jumpers.  If not, see <http://www.gnu.org/licenses/>.
*/
package org.chaoticengine.cgll.entity.component;

//~--- non-JDK imports --------------------------------------------------------

import org.chaoticengine.cgll.entity.Entity;
import org.simpleframework.xml.Root;

@Root(name="component")
public abstract class Component implements IComponent {
    protected Entity owner = null;

    public Component() {
        this.owner = null;
    }

    public Entity getOwner() {
        return (this.owner);
    }

    public void setOwner(Entity owner) {
        this.owner = owner;

        onSetOwner();
    }

    public abstract void onSetOwner();
}


//~ Formatted by Jindent --- http://www.jindent.com
